package com.david.vo;

import lombok.*;

/**
 * @description: 信息返回通用类
 * @create: 2021-04-25-11-21
 * @author: David
 **/
@NoArgsConstructor
@Getter
@Setter
public class ResponseBean {

    private Integer code;

    private String message;

    private Object obj;

    public static ResponseBean error(String message, Integer code){
        return new ResponseBean(code, message);
    }

    private ResponseBean(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
